package com.venusj.springcloud.result;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author zhangjh
 * 返回结果集封装
 * @date 2020/3/22
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class CommonResult<T> {

    private Integer code;

    private String msg;

    private T      data;

    public CommonResult (Integer code, String msg) {
        this(code, msg, null);
    }


}
